<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="${path }/static/css/address.css"/>
 <script type="text/javascript" src="${path }/static/js/jquery.address.js"></script>
</head>
<body>
<div class="border_top_cart">
   <div class="container"> 
    <div class="checkout-box"> 
<form  action="${path }/DoAddAddress" method="get">
    <input type="hidden" value="${userid }" name="userid"/>
    <input type="hidden" value="${a.id }" name="id"/>
         <div class="xm-edit-addr-box" id="J_editAddrBox">
          <div class="bd"> 
           <div class="item"> 
            <label>收货人姓名<span>*</span></label>
            <input type="text" name="name" id="Consignee" class="input" placeholder="收货人姓名" maxlength="15" autocomplete="off" value="${a.name }"/> 
            <p class="tip-msg tipMsg"></p> 
           </div> 
           <div class="item"> 
            <label>联系电话<span>*</span></label> 
            <input type="text" name="phonenum" class="input" id="Telephone" placeholder="11位手机号" autocomplete="off" value="${a.phonenum }" /> 
            <p class="tel-modify-tip" id="telModifyTip"></p> 
            <p class="tip-msg tipMsg"></p> 
           </div> 
           <div class="item"> 
            <label>地址<span>*</span></label> 
            <select name="province" id="Provinces" class="select-1"> <option>省份/自治区</option> </select> 
            <select name="zone" id="Citys" class="select-2" disabled=""> <option>城市/地区/自治州</option> </select> 
            <select name="zone2" id="Countys" class="select-3" disabled=""> <option>区/县</option> </select> 
            <textarea name="stree" class="input-area" id="Street" placeholder="路名或街道地址，门牌号" value="${a.stree }"></textarea> 
            <p class="tip-msg tipMsg"></p> 
           </div> 
           <div class="item"> 
            <label>邮政编码<span>*</span></label> 
            <input type="text" name="zipcode" id="Zipcode" class="input" placeholder="邮政编码" autocomplete="off" value="${a.zipcode }"/> 
            <p class="zipcode-tip" id="zipcodeTip"></p> 
            <p class="tip-msg tipMsg"></p> 
           </div> 
           <div class="item"> 
            <label>地址标签<span>*</span></label> 
            <input type="text" name="alabel" id="Tag" class="input" placeholder="地址标签：如&quot;家&quot;、&quot;公司&quot;。限5个字内" value="${a.alabel }"/> 
            <p class="tip-msg tipMsg"></p> 
           </div> 
          </div> 
          <div class="ft clearfix"> 
           <button type="button" class="btn btn-lineDake btn-small " id="J_editAddrCancel">取消</button> 
           <input type="submit" class="btn btn-primary  btn-small " id="" /> 
          </div>
         </div>
         </form>
         </div></div></div>
</body>
 <script type="text/javascript">
    var checkoutConfig={
        addressMatch:'common',
        addressMatchVarName:'data',
        hasPresales:false,
        hasBigTv:false,
        hasAir:false,
        hasScales:false,
        hasGiftcard:false,
        totalPrice:244.00,
        postage:10,
        postFree:true,
        bcPrice:150,
        activityDiscountMoney:0.00,
        showCouponBox:0,
        invoice:{
            NA:"0",
            personal:"1",
            company:"2",
            electronic:"4"
        }
    };
    var miniCartDisable=true;
</script>
<script id="newAddrTemplate" type="text/x-dot-template">
        <dl class="item selected" data-isnew="true" data-consignee="{{=it.consignee}}" data-tel="{{=it.tel}}" data-province="{{=it.province}}" data-provincename="{{=it.provinceName}}" data-city="{{=it.city}}" data-cityname="{{=it.cityName}}" data-county="{{=it.county}}" data-countyname="{{=it.countyName}}" data-zipcode="{{=it.zipcode}}" data-street="{{=it.street}}" data-tag="{{=it.tag}}">
            <dt>
                <strong class="itemConsignee">{{=it.consignee}}</strong>
                {{? it.tag }}
                    <span  class="itemTag tag">{{=it.tag}}</span>
                {{?}}
            </dt>
            <dd>
                <p class="tel itemTel">{{=it.tel}}</p>
                <p  class="itemRegion">{{=it.provinceName}} {{=it.cityName}} {{=it.countyName}}</p>
                <p  class="itemStreet">{{=it.street}} ({{=it.zipcode}})</p>
                <span class="edit-btn J_editAddr">编辑</span>
            </dd>
        </dl>
</script> 
</html>